const mongoose = require('mongoose');
let Schema = mongoose.Schema;
let userSchema = new Schema({

//     username:String,
//     password:String,
//     email:String,
//     phone:String,
//     roles:String,
//     createTime:Date,
//     updateTime:Date
    
// })
// let userModel = mongoose.model('users',userSchema);

    jobNumber: String,
    roles: String,
    EmployeeRoles: String,
    deparTment: String,
    entryTime: Date,
    initialPassword: String,
    phone: String,
    posiTion: String,
    postBox: String,
    userName: String,
    SuperiorAuthority: String,
});
let userModel = mongoose.model('users', userSchema,'users');

module.exports = userModel;